package com.web.dao;

import com.entity.Customer;
import com.page.PageInfo;

import java.util.List;

public interface CustomerDao {
    public List<Customer> getAll() throws Exception;
    public Customer selectByPrimaryKey(String cid) throws Exception ;
    public Customer selectByPrimaryKeyWithDietian(String cid) throws Exception ;
    public Customer selectByPrimaryKeyWithFood(String cid) throws Exception ;
    public    List<Customer> getCustomersByPage(PageInfo pageInfo) throws Exception ;

   public List<String>  searchCustomerIdsByName(String petternName);

    public int add(Customer customer) throws Exception ;

    public int update(Customer customer) throws Exception;
}
